package com.ithuaxin.identifier;

import java.util.Scanner;

public class Test22 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int a = sc.nextInt();
        int num = 0;
        for (int i=2;i<a;i++){
            if (a%i==0){
                num=num+1;
                break;
            }
        }
        if (num==1){
            System.out.println("这个数是合数");
        }
        else{
            System.out.println("这个数是质数");
        }



    }
}
